//
//  ZXToolObj.h
//  qianke
//
//  Created by ZX on 2017/7/7.
//  Copyright © 2017年 ZX. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <sys/utsname.h>

@interface ZXToolObj : NSObject
//获得某天开始时间戳
+(NSInteger)getsomeDayBeginTim:(NSString*)str;
//获得某天结束开始时间戳
+(NSInteger)getsomeDayEndTim:(NSString*)str;
+(NSString *)getAge:(NSString*)date;
+(NSString *)getNowTimeTimestamp3;

+(NSString *)getTimeStringFormtimestamp:(NSString*)timeStampString;

+ (BOOL) isEmpty:(NSString *) str;
+ (NSString * )getTimeF:(NSString *)timeStr;
+ (const char *)UnicodeToISO88591:(NSString *)src;
+ (NSString *)unicode2ISO88591:(NSString *)string;
+ (NSString *)timeWithTimeIntervalString:(NSString *)timeString;
+ (NSString*)dictionaryToJson:(NSDictionary *)dic;
/*  得到这个月的第一天和最后一天
*/
+ (NSString *)getMonthBeginWith:(NSString *)dateStr;
+ (NSString *)getMonthEndWith:(NSString *)dateStr;
+ (NSString *) getMonth;
+ (NSString *) getLastMonth;
+ (NSString *)getDateStringYearMonthDay:(NSDate *)inputDate;
+ (NSString*)weekdayStringFromDate:(NSDate*)inputDate;
//获取当前日期的下一天日期
+ (NSString *)getDateFromDay:(NSDate *)inputDate;
+ (NSString *)today;
+(NSString *)todayBegin;
+(NSString *)todayEnd;
+ (NSString *)iphoneType;

+(NSString *)getStrFromNum:(NSInteger)num;
@end
#pragma mark -  UILabel Category

@interface UILabel(ZXToolObj)

+ (UILabel *)createLabelWithFrame:(CGRect)frame font:(UIFont *)font;
+ (UILabel *)createLabelWithFrame:(CGRect)frame font:(UIFont *)font textColor:(UIColor *)color;
//AutoLayout
+ (UILabel *)createLabelWithAutoLayoutFont:(UIFont *)font textColor:(UIColor *)color;
+ (UILabel *)createLabelWithFont:(UIFont *)font;

@end
